/**
 * 
 */
package com.yi.model.objects;

import org.springframework.util.StringUtils;

/**
 * @author yilo
 *
 */
public class BussModel extends Model {
	public BussModel(){
		
	}
	
	public BussModel(Model model){
		if(StringUtils.hasLength(model.id)) this.id = model.id;
		if(StringUtils.hasLength(model.name)) this.name = model.name;
		if(StringUtils.hasLength(model.desc)) this.desc = model.desc;
		if(StringUtils.hasLength(model.created)) this.created = model.created;
		if(StringUtils.hasLength(model.updated)) this.updated = model.updated;
		if(model.fields != null && model.fields.size() > 0) this.fields = model.fields;
	}
	public String modelTypeId;
}
